#ifndef WIDGETHISTOGRAMME_H
#define WIDGETHISTOGRAMME_H

#include <QtGui>
#include <QWidget>
class MainWindow;

namespace Ui {
    class WidgetHistogramme;
}

class WidgetHistogramme : public QWidget
{
    Q_OBJECT

public:
    explicit WidgetHistogramme(QWidget *parent = 0);
    ~WidgetHistogramme();
    void paintEvent(QPaintEvent *e);
public slots:
    void cbSelection();


private slots:
    void on_comboBox_currentIndexChanged(int index);
    void on_pushButton_released();

    void on_recMax_valueChanged(int value);
    void on_recMin_valueChanged(int value);


    void on_recadrage_clicked();

private:
    static const int kRgb=0;
    static const int kYuv=1;

    Ui::WidgetHistogramme *ui;
    MainWindow* mw;
    int  typehisto;
    bool boolcouleur[3];

    int recadrageMin, recadrageMax;

};

#endif // WIDGETHISTOGRAMME_H
